package com.spring.housing;

import com.spring.housing.jobBase.handel.TokenInit;
import com.xxl.job.core.biz.model.ReturnT;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.*;



@Slf4j
@RestController
@RefreshScope
public class Handlel {
    @Autowired
    TokenInit tokenInit;
        @PostMapping("/run")
        public ReturnT<String > run(@RequestBody String aaa){
            log.info("当前要执行的采集日期为 param is {}");
          return   tokenInit.execute( aaa);
        }

}
